package com.tanhua.manager.job;

import com.tanhua.manager.service.AnalysisService;
import lombok.extern.slf4j.Slf4j;
import org.joda.time.DateTime;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
@Slf4j
@Component
public class AnalysisJob {

    @Autowired
    private AnalysisService analysisService;
@Scheduled(cron = "0/30 * * * * ?")

    public void analysis() {
        log.info("[定时任务]开始统计分析日志表tb_log数据");
    analysisService.analysis();
    log.info("[定时任务]统计分析日志表tb_log数据完成");
    }

}